import { request } from '@/utils/request.js';

const url = '/adminapi/dashboard/'

/**
 * 总数统计
 */
export function apiCount(params) {
  return request({
    url: `${url}count`,
    method: 'get',
    params: params,
  });
}

/**
 * 会员统计
 */
export function apiMember(params) {
  return request({
    url: `${url}member`,
    method: 'get',
    params: params,
  });
}

/**
 * 内容统计
 */
export function apiCms(params) {
  return request({
    url: `${url}cms`,
    method: 'get',
    params: params,
  });
}

/**
 * 文件统计
 */
export function apiFile(params) {
  return request({
    url: `${url}file`,
    method: 'get',
    params: params,
  });
}

/**
 * 数据总览
 */
export function apiOverview(params) {
  return request({
    url: `${url}overview`,
    method: 'get',
    params: params,
  });
}

/**
 * 趋势
 */
export function apiChainGrowth(params) {
  return request({
    url: `${url}chainGrowth`,
    method: 'get',
    params: params,
  });
}
